package com.jason.java.demo.proxy;

import android.content.Context;
import android.widget.Toast;

import com.cby.code.util.ToastUtils;

/**
 * @description: MyAction
 * @author: ChenBaoYang
 * @createDate: 2022/3/10 9:31 上午
 */
public class MyAction implements IAction {

    private Context context;

    public MyAction(Context context) {
        this.context = context.getApplicationContext();
    }


    @Override
    public void start(String text) {
        ToastUtils.showToast(context, text);
    }

    @Override
    public void resume() {
        ToastUtils.showToast(context, "resume");
    }

    @Override
    public void pause() {
        ToastUtils.showToast(context, "pause");
    }

    @Override
    public void stop() {
        ToastUtils.showToast(context, "pause");
    }
}
